import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SErrorMsg
    
    export  class SErrorMsg extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SErrorMsg();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.code);
            arg1.writeString(this.message);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.code = arg1.readInt();
            this.message = arg1.readString();
            return;
        }

        public /* const */_type: int=4;

        public /* var */code: int;

        public /* var */message: string;

        public static /* var */_regist: SErrorMsg;
    }

            SErrorMsg._regist = new SErrorMsg(true);
        